
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "release"&&OS="RedHat"
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian"
if [ "$OS" = "RedHat" ];then
        yum -y install zlib-devel libffi-devel openssl-devel
fi
if [ "$OS" = "Debian" ];then 
        apt -y install zlib1g-dev libffi-devel libssl-dev
fi
PYTHON_VER=3.7.0
mkdir -p /tmp/build&&cd /tmp/build
wget -t 3 https://s.xabcloud.com/org/Python-$PYTHON_VER.tgz -O -|tar xzf -
cd Python-$PYTHON_VER
./configure
make && make install
pip3 install bson markdown pyaml numpy pymongo redis
pip3 install tornado==5.1.1
rm -fr /tmp/build